package com.eatme.web.sys.workflow.activiti.event.signal;

import org.activiti.engine.RuntimeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class ActivitiEvent {
    private static final Logger LOG = LoggerFactory.getLogger(ActivitiEvent.class);
    @Autowired
    private RuntimeService runtimeService;
    public void signalStart(String signal) {
        LOG.info("通过信号启动任务");
        runtimeService.signalEventReceived(signal);
    }
}
